Optimal. Leaf size=152 \[ -\frac {c \left (3 b c^2+2 a d^2\right )}{2 d^5 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^3}{2 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (3 b c^2+2 a d^2\right ) \sqrt {-c+d x}}{2 d^5 \sqrt {c+d x}}+\frac {\left (3 b c^2+2 a d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{d^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 152, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.226, Rules used = {471, 91, 12, 79,
65, 223, 212} \begin {gather*} -\frac {\sqrt {d x-c} \left (2 a d^2+3 b c^2\right )}{2 d^5 \sqrt {c+d x}}-\frac {c \left (2 a d^2+3 b c^2\right )}{2 d^5 \sqrt {d x-c} \sqrt {c+d x}}+\frac {\left (2 a d^2+3 b c^2\right ) \tanh ^{-1}\left (\frac {\sqrt {d x-c}}{\sqrt {c+d x}}\right )}{d^5}+\frac {b x^3}{2 d^2 \sqrt {d x-c} \sqrt {c+d x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 65
Rule 79
Rule 91
Rule 212
Rule 223
Rule 471
Rubi steps
\begin {align*} \int \frac {x^2 \left (a+b x^2\right )}{(-c+d x)^{3/2} (c+d x)^{3/2}} \, dx &=\frac {b x^3}{2 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {1}{2} \left (-2 a-\frac {3 b c^2}{d^2}\right ) \int \frac {x^2}{(-c+d x)^{3/2} (c+d x)^{3/2}} \, dx\\ &=-\frac {c \left (3 b c^2+2 a d^2\right )}{2 d^5 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^3}{2 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (-2 a-\frac {3 b c^2}{d^2}\right ) \int \frac {c d^2 x}{\sqrt {-c+d x} (c+d x)^{3/2}} \, dx}{2 c d^3}\\ &=-\frac {c \left (3 b c^2+2 a d^2\right )}{2 d^5 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^3}{2 d^2 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {\left (3 b c^2+2 a d^2\right ) \int \frac {x}{\sqrt {-c+d x} (c+d x)^{3/2}} \, dx}{2 d^3}\\ &=-\frac {c \left (3 b c^2+2 a d^2\right )}{2 d^5 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^3}{2 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (3 b c^2+2 a d^2\right ) \sqrt {-c+d x}}{2 d^5 \sqrt {c+d x}}+\frac {\left (3 b c^2+2 a d^2\right ) \int \frac {1}{\sqrt {-c+d x} \sqrt {c+d x}} \, dx}{2 d^4}\\ &=-\frac {c \left (3 b c^2+2 a d^2\right )}{2 d^5 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^3}{2 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (3 b c^2+2 a d^2\right ) \sqrt {-c+d x}}{2 d^5 \sqrt {c+d x}}+\frac {\left (3 b c^2+2 a d^2\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2 c+x^2}} \, dx,x,\sqrt {-c+d x}\right )}{d^5}\\ &=-\frac {c \left (3 b c^2+2 a d^2\right )}{2 d^5 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^3}{2 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (3 b c^2+2 a d^2\right ) \sqrt {-c+d x}}{2 d^5 \sqrt {c+d x}}+\frac {\left (3 b c^2+2 a d^2\right ) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{d^5}\\ &=-\frac {c \left (3 b c^2+2 a d^2\right )}{2 d^5 \sqrt {-c+d x} \sqrt {c+d x}}+\frac {b x^3}{2 d^2 \sqrt {-c+d x} \sqrt {c+d x}}-\frac {\left (3 b c^2+2 a d^2\right ) \sqrt {-c+d x}}{2 d^5 \sqrt {c+d x}}+\frac {\left (3 b c^2+2 a d^2\right ) \tanh ^{-1}\left (\frac {\sqrt {-c+d x}}{\sqrt {c+d x}}\right )}{d^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 108, normalized size = 0.71 \begin {gather*} \frac {-3 b c^2 d x-2 a d^3 x+b d^3 x^3+2 \left (3 b c^2+2 a d^2\right ) \sqrt {-c+d x} \sqrt {c+d x} \tanh ^{-1}\left (\frac {\sqrt {c+d x}}{\sqrt {-c+d x}}\right )}{2 d^5 \sqrt {-c+d x} \sqrt {c+d x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 0.32, size = 263, normalized size = 1.73
method | result | size |
default | \(\frac {\sqrt {d x -c}\, \left (-\mathrm {csgn}\left (d \right ) b \,d^{3} x^{3} \sqrt {d^{2} x^{2}-c^{2}}-2 \ln \left (\left (\sqrt {d^{2} x^{2}-c^{2}}\, \mathrm {csgn}\left (d \right )+d x \right ) \mathrm {csgn}\left (d \right )\right ) a \,d^{4} x^{2}-3 \ln \left (\left (\sqrt {d^{2} x^{2}-c^{2}}\, \mathrm {csgn}\left (d \right )+d x \right ) \mathrm {csgn}\left (d \right )\right ) b \,c^{2} d^{2} x^{2}+2 \sqrt {d^{2} x^{2}-c^{2}}\, \mathrm {csgn}\left (d \right ) d^{3} a x +3 \sqrt {d^{2} x^{2}-c^{2}}\, \mathrm {csgn}\left (d \right ) d b \,c^{2} x +2 \ln \left (\left (\sqrt {d^{2} x^{2}-c^{2}}\, \mathrm {csgn}\left (d \right )+d x \right ) \mathrm {csgn}\left (d \right )\right ) a \,c^{2} d^{2}+3 \ln \left (\left (\sqrt {d^{2} x^{2}-c^{2}}\, \mathrm {csgn}\left (d \right )+d x \right ) \mathrm {csgn}\left (d \right )\right ) b \,c^{4}\right ) \mathrm {csgn}\left (d \right )}{2 \left (-d x +c \right ) \sqrt {d^{2} x^{2}-c^{2}}\, d^{5} \sqrt {d x +c}}\) | \(263\) |
risch | \(-\frac {b x \left (-d x +c \right ) \sqrt {d x +c}}{2 d^{4} \sqrt {d x -c}}-\frac {\left (-\frac {\ln \left (\frac {d^{2} x}{\sqrt {d^{2}}}+\sqrt {d^{2} x^{2}-c^{2}}\right ) a}{d^{2} \sqrt {d^{2}}}-\frac {3 \ln \left (\frac {d^{2} x}{\sqrt {d^{2}}}+\sqrt {d^{2} x^{2}-c^{2}}\right ) b \,c^{2}}{2 d^{4} \sqrt {d^{2}}}+\frac {\sqrt {d^{2} \left (x +\frac {c}{d}\right )^{2}-2 c d \left (x +\frac {c}{d}\right )}\, a}{2 d^{4} \left (x +\frac {c}{d}\right )}+\frac {\sqrt {d^{2} \left (x +\frac {c}{d}\right )^{2}-2 c d \left (x +\frac {c}{d}\right )}\, b \,c^{2}}{2 d^{6} \left (x +\frac {c}{d}\right )}+\frac {\sqrt {d^{2} \left (x -\frac {c}{d}\right )^{2}+2 c d \left (x -\frac {c}{d}\right )}\, a}{2 d^{4} \left (x -\frac {c}{d}\right )}+\frac {\sqrt {d^{2} \left (x -\frac {c}{d}\right )^{2}+2 c d \left (x -\frac {c}{d}\right )}\, b \,c^{2}}{2 d^{6} \left (x -\frac {c}{d}\right )}\right ) \sqrt {\left (d x -c \right ) \left (d x +c \right )}}{\sqrt {d x -c}\, \sqrt {d x +c}}\) | \(324\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 138, normalized size = 0.91 \begin {gather*} \frac {b x^{3}}{2 \, \sqrt {d^{2} x^{2} - c^{2}} d^{2}} - \frac {3 \, b c^{2} x}{2 \, \sqrt {d^{2} x^{2} - c^{2}} d^{4}} - \frac {a x}{\sqrt {d^{2} x^{2} - c^{2}} d^{2}} + \frac {3 \, b c^{2} \log \left (2 \, d^{2} x + 2 \, \sqrt {d^{2} x^{2} - c^{2}} d\right )}{2 \, d^{5}} + \frac {a \log \left (2 \, d^{2} x + 2 \, \sqrt {d^{2} x^{2} - c^{2}} d\right )}{d^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.71, size = 159, normalized size = 1.05 \begin {gather*} \frac {2 \, b c^{4} + 2 \, a c^{2} d^{2} - 2 \, {\left (b c^{2} d^{2} + a d^{4}\right )} x^{2} + {\left (b d^{3} x^{3} - {\left (3 \, b c^{2} d + 2 \, a d^{3}\right )} x\right )} \sqrt {d x + c} \sqrt {d x - c} + {\left (3 \, b c^{4} + 2 \, a c^{2} d^{2} - {\left (3 \, b c^{2} d^{2} + 2 \, a d^{4}\right )} x^{2}\right )} \log \left (-d x + \sqrt {d x + c} \sqrt {d x - c}\right )}{2 \, {\left (d^{7} x^{2} - c^{2} d^{5}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.60, size = 147, normalized size = 0.97 \begin {gather*} \frac {\sqrt {d x + c} {\left ({\left (d x + c\right )} {\left (\frac {{\left (d x + c\right )} b}{d^{5}} - \frac {3 \, b c}{d^{5}}\right )} + \frac {b c^{2} d^{15} - a d^{17}}{d^{20}}\right )}}{2 \, \sqrt {d x - c}} - \frac {{\left (3 \, b c^{2} + 2 \, a d^{2}\right )} \log \left ({\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2}\right )}{2 \, d^{5}} - \frac {2 \, {\left (b c^{3} + a c d^{2}\right )}}{{\left ({\left (\sqrt {d x + c} - \sqrt {d x - c}\right )}^{2} + 2 \, c\right )} d^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^2\,\left (b\,x^2+a\right )}{{\left (c+d\,x\right )}^{3/2}\,{\left (d\,x-c\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________